package com.hzlx.materials.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * MES物料详细信息对象 mes_materials
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
public class MesMaterials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料ID，唯一标识物料，业务主键 */
    private Long materialId;

    /** 物料名称，物料的标准名称 */
    @Excel(name = "物料名称，物料的标准名称")
    private String materialName;

    /** 物料类型，如原材料、半成品、成品等分类 */
    @Excel(name = "物料类型，如原材料、半成品、成品等分类")
    private String materialType;

    /** 计量单位，物料的计量标准（个/千克等） */
    @Excel(name = "计量单位，物料的计量标准", readConverterExp = "个=/千克等")
    private String unitOfMeasure;

    /** 物料描述，详细说明物料特性、用途等 */
    @Excel(name = "物料描述，详细说明物料特性、用途等")
    private String description;

    /** 最低库存水平，用于库存预警，默认0.00 */
    @Excel(name = "最低库存水平，用于库存预警，默认0.00")
    private BigDecimal minStockLevel;

    /** 创建时间，记录物料创建时刻 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间，记录物料创建时刻", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间，记录物料信息最后修改时刻，数据更新时自动变更 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间，记录物料信息最后修改时刻，数据更新时自动变更", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setMaterialType(String materialType) 
    {
        this.materialType = materialType;
    }

    public String getMaterialType() 
    {
        return materialType;
    }

    public void setUnitOfMeasure(String unitOfMeasure) 
    {
        this.unitOfMeasure = unitOfMeasure;
    }

    public String getUnitOfMeasure() 
    {
        return unitOfMeasure;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setMinStockLevel(BigDecimal minStockLevel) 
    {
        this.minStockLevel = minStockLevel;
    }

    public BigDecimal getMinStockLevel() 
    {
        return minStockLevel;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("materialType", getMaterialType())
            .append("unitOfMeasure", getUnitOfMeasure())
            .append("description", getDescription())
            .append("minStockLevel", getMinStockLevel())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
